/* 全局样式 */
body {
  font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* 导航栏 */
.navbar-brand {
  font-weight: bold;
}

.nav-link {
  font-size: 0.95rem;
}

/* 页面内容 */
.page {
  min-height: 70vh;
}

/* 聊天室样式 */
.chat-messages {
  height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #f9f9f9;
}

.message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 10px;
  max-width: 80%;
  position: relative;
}

.message.outgoing {
  background-color: #dcf8c6;
  align-self: flex-end;
  margin-left: auto;
}

.message.incoming {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  align-self: flex-start;
}

.message .sender {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.85rem;
}

.message .time {
  font-size: 0.7rem;
  color: #777;
  text-align: right;
  margin-top: 5px;
}

.message.file-message {
  background-color: #e3f2fd;
}

.file-message a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.file-message .file-icon {
  margin-right: 8px;
}

/* 用户列表样式 */
.users-list .user-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  cursor: pointer;
}

.users-list .user-item:hover {
  background-color: #f5f5f5;
}

.users-list .user-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
}

.users-list .user-status.online {
  background-color: #28a745;
}

.users-list .user-status.offline {
  background-color: #dc3545;
}

/* 帖子列表样式 */
.post-item {
  margin-bottom: 10px;
  transition: all 0.2s;
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.post-item .post-title {
  font-weight: 600;
}

.post-item .post-meta {
  font-size: 0.8rem;
  color: #666;
}

/* 评论样式 */
.comment {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  background-color: #fff;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.comment-author {
  font-weight: bold;
  color: #495057;
}

.comment-date {
  font-size: 0.8rem;
  color: #6c757d;
}

/* 文件上传区域 */
.file-drop-area {
  border: 2px dashed #ccc;
  border-radius: 5px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.file-drop-area:hover {
  background-color: #f0f0f0;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.file-item:last-child {
  border-bottom: none;
}

/* 模态框自定义样式 */
.modal-body {
  padding: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .chat-messages {
    height: 300px;
  }
  
  .message {
    max-width: 90%;
  }
}

/* 辅助类 */
.cursor-pointer {
  cursor: pointer;
}

.text-small {
  font-size: 0.85rem;
} 